<@console title="分类管理界面">

<br>
<@button goto=URL('console/category/create')>新增分类</@button>
<br><br>
  <table class="datatable" style="width:500px;" >
  <thead><tr>
  		<th>
  			编号
  		</th>
  		<th>
  			代码
  		</th>
  		<th>
  			名称
  		</th>
  		<th>
  			描述
  		</th>
  		<th>
  			类型
  		</th> 
  		<th>
  			修改
  		</th>  
  		<th>
  			删除
  		</th>   		
  	</tr>
  	<thead>
  	<tbody>
  	<#list Categories.all as category>
  	<tr>
  		<td>
  			${S(category.ID)}
  		</td>
  		<td>
  			${S(category.code)}
  		</td>
  		<td>
  			${S(category.label)}
  		</td>
  		<td>
  			${S(category.description)}
  		</td>
  		<td>
  			${S(category.type)}
  		</td>
  		<td>
  			<@button goto=URL('console/category/', category.ID)>修改</@button>
  		</td>  
  		<td>
  			<@button goto=URL('console/category/remove/', category.ID)>删除</@button>
  		</td>
  	</tr>
  	</#list>
  	</tobdy>
  </table>

</@console>